package com.gnerv.cms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gnerv.cms.entity.Catalog;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * CMS平台-栏目表 Mapper 接口
 * </p>
 *
 * @author Gnerv LiGen
 * @since 2019-07-01
 */
public interface CatalogMapper extends BaseMapper<Catalog> {

    int bindingArticle(@Param("cId") String cId, @Param("aId") String aId);

    int relieveArticle(@Param("aId") String aId);

    int checkBingding(String cId, String aId);

    List<Catalog> selectCatalogTree(String bId);
}
